package com.example.bookmapper.controller;

import com.example.bookmapper.pojo.AdsPublisherPopularityRank;
import com.example.bookmapper.service.AdsPublisherPopularityRankService;
import com.example.bookmapper.util.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class AdsPublisherPopularityRankController {
    @Autowired
    private AdsPublisherPopularityRankService adsPublisherPopularityRankService;

    @GetMapping("/queryAllAdsPublisherPopularityRank")
    public ResponseResult<List<AdsPublisherPopularityRank>> queryAllAdsPublisherPopularityRank() {
        List<AdsPublisherPopularityRank> adsPublisherPopularityRanks = adsPublisherPopularityRankService.queryAllAdsPublisherPopularityRank();
        return new ResponseResult<>("200", "查询成功", adsPublisherPopularityRanks);
    }
}
